x11: Keep a reference to the SelectionOutputStream while writing
authorBenjamin Otte <otte@redhat.com>
Mon, 13 Dec 2021 00:41:04 +0000 (01:41 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 13 Dec 2021 00:42:45 +0000 (01:42 +0100)
commit645d4807c3ab0b6ac20cb08f16f39893a95bd2f2
treea6eca40ed2daebff460c5b91db67cf6bf7ad5614
parent99b99d7b23e922b05fc12cdffdec9c5ec43a2de3
x11: Keep a reference to the SelectionOutputStream while writing

This ensures close() isn't called from dispose() while we're still busy
writing.

In theory this should never happen, but in practice it just did.
gdk/x11/gdkselectionoutputstream-x11.c